{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "f71a43d0-3cf1-4d53-a867-cd57b1fcba30",
   "metadata": {},
   "source": [
    "# The `plotInset` Parameter in `theme()`\n",
    "\n",
    "The `plotInset` parameter in `theme()` specifies the inset for a plotting area, including the axes with their labels, but without titles.\n",
    "The parameter is set according to the margin rules: accept a number or a list of numbers."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "8ae5e345-9df2-4151-82aa-c9f211083209",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "   <div id=\"w7kfPK\"></div>\n",
       "   <script type=\"text/javascript\" data-lets-plot-script=\"library\">\n",
       "       if(!window.letsPlotCallQueue) {\n",
       "           window.letsPlotCallQueue = [];\n",
       "       }; \n",
       "       window.letsPlotCall = function(f) {\n",
       "           window.letsPlotCallQueue.push(f);\n",
       "       };\n",
       "       (function() {\n",
       "           var script = document.createElement(\"script\");\n",
       "           script.type = \"text/javascript\";\n",
       "           script.src = \"https://cdn.jsdelivr.net/gh/JetBrains/lets-plot@v4.3.1/js-package/distr/lets-plot.min.js\";\n",
       "           script.onload = function() {\n",
       "               window.letsPlotCall = function(f) {f();};\n",
       "               window.letsPlotCallQueue.forEach(function(f) {f();});\n",
       "               window.letsPlotCallQueue = [];\n",
       "               \n",
       "               \n",
       "           };\n",
       "           script.onerror = function(event) {\n",
       "               window.letsPlotCall = function(f) {};\n",
       "               window.letsPlotCallQueue = [];\n",
       "               var div = document.createElement(\"div\");\n",
       "               div.style.color = 'darkred';\n",
       "               div.textContent = 'Error loading Lets-Plot JS';\n",
       "               document.getElementById(\"w7kfPK\").appendChild(div);\n",
       "           };\n",
       "           var e = document.getElementById(\"w7kfPK\");\n",
       "           e.appendChild(script);\n",
       "       })();\n",
       "   </script>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "%useLatestDescriptors\n",
    "%use lets-plot"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "d4fc6a1e-fef7-446a-a3e6-ceca45c2d598",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Lets-Plot Kotlin API v.4.7.1. Frontend: Notebook with dynamically loaded JS. Lets-Plot JS v.4.3.1."
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "LetsPlot.getInfo()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "1b0cc229-fd1c-43f8-83b2-9f033828ff64",
   "metadata": {},
   "outputs": [],
   "source": [
    "val start = -Math.PI\n",
    "val stop = Math.PI\n",
    "val num = 100\n",
    "val step = ((stop - start) / (num - 1))\n",
    "val x = List(num) { start + it * step }\n",
    "val data = mapOf(\n",
    "    \"x\" to x,\n",
    "    \"y\" to x.map{Math.sin(it)}\n",
    ") \n",
    "\n",
    "val p = letsPlot(data) { x = \"x\"; y = \"y\" } +\n",
    "    geomLine() +\n",
    "    ggtitle(\"Sine wave\") +\n",
    "    themeLight() +\n",
    "    theme(plotBackground = elementRect(size = 1))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "b460a64b-c905-4bcf-ac93-7b4c313729bc",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "   <div id=\"HdCG1j\"></div>\n",
       "   <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
       "       (function() {\n",
       "           var plotSpec={\n",
       "\"layout\":{\n",
       "\"name\":\"grid\",\n",
       "\"ncol\":2,\n",
       "\"nrow\":1,\n",
       "\"fit\":true,\n",
       "\"align\":false\n",
       "},\n",
       "\"figures\":[{\n",
       "\"ggtitle\":{\n",
       "\"text\":\"Sine wave\"\n",
       "},\n",
       "\"mapping\":{\n",
       "\"x\":\"x\",\n",
       "\"y\":\"y\"\n",
       "},\n",
       "\"data\":{\n",
       "\"x\":[-3.141592653589793,-3.0781261353354537,-3.0146596170811146,-2.951193098826775,-2.887726580572436,-2.8242600623180967,-2.7607935440637577,-2.697327025809418,-2.633860507555079,-2.5703939893007397,-2.5069274710464007,-2.443460952792061,-2.379994434537722,-2.3165279162833827,-2.2530613980290433,-2.1895948797747042,-2.126128361520365,-2.0626618432660258,-1.9991953250116865,-1.9357288067573473,-1.872262288503008,-1.8087957702486688,-1.7453292519943295,-1.6818627337399903,-1.6183962154856508,-1.5549296972313116,-1.4914631789769723,-1.427996660722633,-1.3645301424682938,-1.3010636242139546,-1.2375971059596154,-1.1741305877052761,-1.1106640694509369,-1.0471975511965974,-0.9837310329422584,-0.9202645146879189,-0.8567979964335799,-0.7933314781792404,-0.7298649599249014,-0.666398441670562,-0.6029319234162229,-0.5394654051618835,-0.47599888690754444,-0.412532368653205,-0.34906585039886595,-0.2855993321445265,-0.22213281389018746,-0.158666295635848,-0.09519977738150853,-0.03173325912716951,0.031733259127169955,0.09519977738150898,0.15866629563584844,0.22213281389018746,0.28559933214452693,0.34906585039886595,0.4125323686532054,0.47599888690754444,0.5394654051618839,0.6029319234162229,0.6663984416705624,0.7298649599249014,0.7933314781792409,0.8567979964335799,0.9202645146879194,0.9837310329422584,1.0471975511965983,1.1106640694509373,1.1741305877052763,1.2375971059596154,1.3010636242139553,1.3645301424682943,1.4279966607226333,1.4914631789769723,1.5549296972313122,1.6183962154856513,1.6818627337399903,1.7453292519943293,1.8087957702486692,1.8722622885030082,1.9357288067573473,1.9991953250116872,2.062661843266026,2.126128361520365,2.1895948797747042,2.253061398029044,2.316527916283383,2.379994434537722,2.443460952792061,2.506927471046401,2.57039398930074,2.633860507555079,2.697327025809418,2.760793544063758,2.824260062318097,2.887726580572436,2.951193098826776,3.014659617081115,3.078126135335454,3.141592653589793],\n",
       "\"y\":[-1.2246467991473532E-16,-0.06342391965656484,-0.12659245357374938,-0.1892512443604105,-0.2511479871810793,-0.31203344569848734,-0.3716624556603276,-0.4297949120891718,-0.4861967361004687,-0.5406408174555978,-0.5929079290546404,-0.6427876096865395,-0.6900790114821119,-0.7345917086575334,-0.776146464291757,-0.8145759520503357,-0.8497254299495143,-0.8814533634475821,-0.9096319953545184,-0.9341478602651068,-0.9549022414440739,-0.9718115683235418,-0.9848077530122081,-0.9938384644612541,-0.998867339183008,-0.9998741276738751,-0.9968547759519424,-0.9898214418809327,-0.9788024462147786,-0.963842158559942,-0.9450008187146685,-0.9223542941045814,-0.8959937742913358,-0.8660254037844385,-0.8325698546347713,-0.795761840530832,-0.7557495743542583,-0.7126941713788627,-0.6667690005162916,-0.6181589862206051,-0.5670598638627707,-0.5136773915734062,-0.4582265217274104,-0.4009305354066135,-0.34202014332566877,-0.2817325568414295,-0.2203105327865407,-0.15800139597334975,-0.09505604330418231,-0.03172793349806753,0.031727933498067976,0.09505604330418276,0.1580013959733502,0.2203105327865407,0.28173255684142995,0.34202014332566877,0.4009305354066139,0.4582265217274104,0.5136773915734065,0.5670598638627707,0.6181589862206054,0.6667690005162916,0.7126941713788629,0.7557495743542583,0.7957618405308322,0.8325698546347713,0.8660254037844389,0.895993774291336,0.9223542941045815,0.9450008187146685,0.9638421585599422,0.9788024462147787,0.9898214418809328,0.9968547759519424,0.9998741276738751,0.998867339183008,0.9938384644612541,0.9848077530122081,0.9718115683235415,0.9549022414440739,0.9341478602651068,0.9096319953545181,0.8814533634475819,0.8497254299495143,0.8145759520503357,0.7761464642917565,0.7345917086575331,0.6900790114821119,0.6427876096865395,0.5929079290546401,0.5406408174555974,0.4861967361004687,0.4297949120891718,0.37166245566032713,0.31203344569848696,0.2511479871810793,0.18925124436040963,0.12659245357374893,0.0634239196565644,1.2246467991473532E-16]\n",
       "},\n",
       "\"kind\":\"plot\",\n",
       "\"scales\":[],\n",
       "\"layers\":[{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"identity\",\n",
       "\"position\":\"identity\",\n",
       "\"geom\":\"line\",\n",
       "\"data\":{\n",
       "}\n",
       "}],\n",
       "\"theme\":{\n",
       "\"name\":\"light\",\n",
       "\"plot_background\":{\n",
       "\"size\":1.0,\n",
       "\"blank\":false\n",
       "}\n",
       "}\n",
       "},{\n",
       "\"ggtitle\":{\n",
       "\"text\":\"Sine wave\"\n",
       "},\n",
       "\"mapping\":{\n",
       "\"x\":\"x\",\n",
       "\"y\":\"y\"\n",
       "},\n",
       "\"data\":{\n",
       "\"x\":[-3.141592653589793,-3.0781261353354537,-3.0146596170811146,-2.951193098826775,-2.887726580572436,-2.8242600623180967,-2.7607935440637577,-2.697327025809418,-2.633860507555079,-2.5703939893007397,-2.5069274710464007,-2.443460952792061,-2.379994434537722,-2.3165279162833827,-2.2530613980290433,-2.1895948797747042,-2.126128361520365,-2.0626618432660258,-1.9991953250116865,-1.9357288067573473,-1.872262288503008,-1.8087957702486688,-1.7453292519943295,-1.6818627337399903,-1.6183962154856508,-1.5549296972313116,-1.4914631789769723,-1.427996660722633,-1.3645301424682938,-1.3010636242139546,-1.2375971059596154,-1.1741305877052761,-1.1106640694509369,-1.0471975511965974,-0.9837310329422584,-0.9202645146879189,-0.8567979964335799,-0.7933314781792404,-0.7298649599249014,-0.666398441670562,-0.6029319234162229,-0.5394654051618835,-0.47599888690754444,-0.412532368653205,-0.34906585039886595,-0.2855993321445265,-0.22213281389018746,-0.158666295635848,-0.09519977738150853,-0.03173325912716951,0.031733259127169955,0.09519977738150898,0.15866629563584844,0.22213281389018746,0.28559933214452693,0.34906585039886595,0.4125323686532054,0.47599888690754444,0.5394654051618839,0.6029319234162229,0.6663984416705624,0.7298649599249014,0.7933314781792409,0.8567979964335799,0.9202645146879194,0.9837310329422584,1.0471975511965983,1.1106640694509373,1.1741305877052763,1.2375971059596154,1.3010636242139553,1.3645301424682943,1.4279966607226333,1.4914631789769723,1.5549296972313122,1.6183962154856513,1.6818627337399903,1.7453292519943293,1.8087957702486692,1.8722622885030082,1.9357288067573473,1.9991953250116872,2.062661843266026,2.126128361520365,2.1895948797747042,2.253061398029044,2.316527916283383,2.379994434537722,2.443460952792061,2.506927471046401,2.57039398930074,2.633860507555079,2.697327025809418,2.760793544063758,2.824260062318097,2.887726580572436,2.951193098826776,3.014659617081115,3.078126135335454,3.141592653589793],\n",
       "\"y\":[-1.2246467991473532E-16,-0.06342391965656484,-0.12659245357374938,-0.1892512443604105,-0.2511479871810793,-0.31203344569848734,-0.3716624556603276,-0.4297949120891718,-0.4861967361004687,-0.5406408174555978,-0.5929079290546404,-0.6427876096865395,-0.6900790114821119,-0.7345917086575334,-0.776146464291757,-0.8145759520503357,-0.8497254299495143,-0.8814533634475821,-0.9096319953545184,-0.9341478602651068,-0.9549022414440739,-0.9718115683235418,-0.9848077530122081,-0.9938384644612541,-0.998867339183008,-0.9998741276738751,-0.9968547759519424,-0.9898214418809327,-0.9788024462147786,-0.963842158559942,-0.9450008187146685,-0.9223542941045814,-0.8959937742913358,-0.8660254037844385,-0.8325698546347713,-0.795761840530832,-0.7557495743542583,-0.7126941713788627,-0.6667690005162916,-0.6181589862206051,-0.5670598638627707,-0.5136773915734062,-0.4582265217274104,-0.4009305354066135,-0.34202014332566877,-0.2817325568414295,-0.2203105327865407,-0.15800139597334975,-0.09505604330418231,-0.03172793349806753,0.031727933498067976,0.09505604330418276,0.1580013959733502,0.2203105327865407,0.28173255684142995,0.34202014332566877,0.4009305354066139,0.4582265217274104,0.5136773915734065,0.5670598638627707,0.6181589862206054,0.6667690005162916,0.7126941713788629,0.7557495743542583,0.7957618405308322,0.8325698546347713,0.8660254037844389,0.895993774291336,0.9223542941045815,0.9450008187146685,0.9638421585599422,0.9788024462147787,0.9898214418809328,0.9968547759519424,0.9998741276738751,0.998867339183008,0.9938384644612541,0.9848077530122081,0.9718115683235415,0.9549022414440739,0.9341478602651068,0.9096319953545181,0.8814533634475819,0.8497254299495143,0.8145759520503357,0.7761464642917565,0.7345917086575331,0.6900790114821119,0.6427876096865395,0.5929079290546401,0.5406408174555974,0.4861967361004687,0.4297949120891718,0.37166245566032713,0.31203344569848696,0.2511479871810793,0.18925124436040963,0.12659245357374893,0.0634239196565644,1.2246467991473532E-16]\n",
       "},\n",
       "\"kind\":\"plot\",\n",
       "\"scales\":[],\n",
       "\"layers\":[{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"identity\",\n",
       "\"position\":\"identity\",\n",
       "\"geom\":\"line\",\n",
       "\"data\":{\n",
       "}\n",
       "}],\n",
       "\"theme\":{\n",
       "\"name\":\"light\",\n",
       "\"plot_background\":{\n",
       "\"size\":1.0,\n",
       "\"blank\":false\n",
       "},\n",
       "\"plot_inset\":20.0\n",
       "}\n",
       "}],\n",
       "\"kind\":\"subplots\"\n",
       "};\n",
       "           var plotContainer = document.getElementById(\"HdCG1j\");\n",
       "           window.letsPlotCall(function() {{\n",
       "               LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
       "           }});\n",
       "       })();\n",
       "   </script>"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "gggrid(listOf(\n",
    "    p,\n",
    "    p + theme(plotInset = 20)\n",
    "))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "d087539c-0a48-4607-851f-5f9812eae9f8",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "   <div id=\"eAzFcJ\"></div>\n",
       "   <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
       "       (function() {\n",
       "           var plotSpec={\n",
       "\"layout\":{\n",
       "\"name\":\"grid\",\n",
       "\"ncol\":2,\n",
       "\"nrow\":1,\n",
       "\"fit\":true,\n",
       "\"align\":false\n",
       "},\n",
       "\"figures\":[{\n",
       "\"ggtitle\":{\n",
       "\"text\":\"Sine wave\"\n",
       "},\n",
       "\"mapping\":{\n",
       "\"x\":\"x\",\n",
       "\"y\":\"y\"\n",
       "},\n",
       "\"data\":{\n",
       "\"x\":[-3.141592653589793,-3.0781261353354537,-3.0146596170811146,-2.951193098826775,-2.887726580572436,-2.8242600623180967,-2.7607935440637577,-2.697327025809418,-2.633860507555079,-2.5703939893007397,-2.5069274710464007,-2.443460952792061,-2.379994434537722,-2.3165279162833827,-2.2530613980290433,-2.1895948797747042,-2.126128361520365,-2.0626618432660258,-1.9991953250116865,-1.9357288067573473,-1.872262288503008,-1.8087957702486688,-1.7453292519943295,-1.6818627337399903,-1.6183962154856508,-1.5549296972313116,-1.4914631789769723,-1.427996660722633,-1.3645301424682938,-1.3010636242139546,-1.2375971059596154,-1.1741305877052761,-1.1106640694509369,-1.0471975511965974,-0.9837310329422584,-0.9202645146879189,-0.8567979964335799,-0.7933314781792404,-0.7298649599249014,-0.666398441670562,-0.6029319234162229,-0.5394654051618835,-0.47599888690754444,-0.412532368653205,-0.34906585039886595,-0.2855993321445265,-0.22213281389018746,-0.158666295635848,-0.09519977738150853,-0.03173325912716951,0.031733259127169955,0.09519977738150898,0.15866629563584844,0.22213281389018746,0.28559933214452693,0.34906585039886595,0.4125323686532054,0.47599888690754444,0.5394654051618839,0.6029319234162229,0.6663984416705624,0.7298649599249014,0.7933314781792409,0.8567979964335799,0.9202645146879194,0.9837310329422584,1.0471975511965983,1.1106640694509373,1.1741305877052763,1.2375971059596154,1.3010636242139553,1.3645301424682943,1.4279966607226333,1.4914631789769723,1.5549296972313122,1.6183962154856513,1.6818627337399903,1.7453292519943293,1.8087957702486692,1.8722622885030082,1.9357288067573473,1.9991953250116872,2.062661843266026,2.126128361520365,2.1895948797747042,2.253061398029044,2.316527916283383,2.379994434537722,2.443460952792061,2.506927471046401,2.57039398930074,2.633860507555079,2.697327025809418,2.760793544063758,2.824260062318097,2.887726580572436,2.951193098826776,3.014659617081115,3.078126135335454,3.141592653589793],\n",
       "\"y\":[-1.2246467991473532E-16,-0.06342391965656484,-0.12659245357374938,-0.1892512443604105,-0.2511479871810793,-0.31203344569848734,-0.3716624556603276,-0.4297949120891718,-0.4861967361004687,-0.5406408174555978,-0.5929079290546404,-0.6427876096865395,-0.6900790114821119,-0.7345917086575334,-0.776146464291757,-0.8145759520503357,-0.8497254299495143,-0.8814533634475821,-0.9096319953545184,-0.9341478602651068,-0.9549022414440739,-0.9718115683235418,-0.9848077530122081,-0.9938384644612541,-0.998867339183008,-0.9998741276738751,-0.9968547759519424,-0.9898214418809327,-0.9788024462147786,-0.963842158559942,-0.9450008187146685,-0.9223542941045814,-0.8959937742913358,-0.8660254037844385,-0.8325698546347713,-0.795761840530832,-0.7557495743542583,-0.7126941713788627,-0.6667690005162916,-0.6181589862206051,-0.5670598638627707,-0.5136773915734062,-0.4582265217274104,-0.4009305354066135,-0.34202014332566877,-0.2817325568414295,-0.2203105327865407,-0.15800139597334975,-0.09505604330418231,-0.03172793349806753,0.031727933498067976,0.09505604330418276,0.1580013959733502,0.2203105327865407,0.28173255684142995,0.34202014332566877,0.4009305354066139,0.4582265217274104,0.5136773915734065,0.5670598638627707,0.6181589862206054,0.6667690005162916,0.7126941713788629,0.7557495743542583,0.7957618405308322,0.8325698546347713,0.8660254037844389,0.895993774291336,0.9223542941045815,0.9450008187146685,0.9638421585599422,0.9788024462147787,0.9898214418809328,0.9968547759519424,0.9998741276738751,0.998867339183008,0.9938384644612541,0.9848077530122081,0.9718115683235415,0.9549022414440739,0.9341478602651068,0.9096319953545181,0.8814533634475819,0.8497254299495143,0.8145759520503357,0.7761464642917565,0.7345917086575331,0.6900790114821119,0.6427876096865395,0.5929079290546401,0.5406408174555974,0.4861967361004687,0.4297949120891718,0.37166245566032713,0.31203344569848696,0.2511479871810793,0.18925124436040963,0.12659245357374893,0.0634239196565644,1.2246467991473532E-16]\n",
       "},\n",
       "\"kind\":\"plot\",\n",
       "\"scales\":[],\n",
       "\"layers\":[{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"identity\",\n",
       "\"position\":\"identity\",\n",
       "\"geom\":\"line\",\n",
       "\"data\":{\n",
       "}\n",
       "}],\n",
       "\"theme\":{\n",
       "\"name\":\"light\",\n",
       "\"plot_background\":{\n",
       "\"size\":1.0,\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis\":{\n",
       "\"blank\":true\n",
       "}\n",
       "}\n",
       "},{\n",
       "\"ggtitle\":{\n",
       "\"text\":\"Sine wave\"\n",
       "},\n",
       "\"mapping\":{\n",
       "\"x\":\"x\",\n",
       "\"y\":\"y\"\n",
       "},\n",
       "\"data\":{\n",
       "\"x\":[-3.141592653589793,-3.0781261353354537,-3.0146596170811146,-2.951193098826775,-2.887726580572436,-2.8242600623180967,-2.7607935440637577,-2.697327025809418,-2.633860507555079,-2.5703939893007397,-2.5069274710464007,-2.443460952792061,-2.379994434537722,-2.3165279162833827,-2.2530613980290433,-2.1895948797747042,-2.126128361520365,-2.0626618432660258,-1.9991953250116865,-1.9357288067573473,-1.872262288503008,-1.8087957702486688,-1.7453292519943295,-1.6818627337399903,-1.6183962154856508,-1.5549296972313116,-1.4914631789769723,-1.427996660722633,-1.3645301424682938,-1.3010636242139546,-1.2375971059596154,-1.1741305877052761,-1.1106640694509369,-1.0471975511965974,-0.9837310329422584,-0.9202645146879189,-0.8567979964335799,-0.7933314781792404,-0.7298649599249014,-0.666398441670562,-0.6029319234162229,-0.5394654051618835,-0.47599888690754444,-0.412532368653205,-0.34906585039886595,-0.2855993321445265,-0.22213281389018746,-0.158666295635848,-0.09519977738150853,-0.03173325912716951,0.031733259127169955,0.09519977738150898,0.15866629563584844,0.22213281389018746,0.28559933214452693,0.34906585039886595,0.4125323686532054,0.47599888690754444,0.5394654051618839,0.6029319234162229,0.6663984416705624,0.7298649599249014,0.7933314781792409,0.8567979964335799,0.9202645146879194,0.9837310329422584,1.0471975511965983,1.1106640694509373,1.1741305877052763,1.2375971059596154,1.3010636242139553,1.3645301424682943,1.4279966607226333,1.4914631789769723,1.5549296972313122,1.6183962154856513,1.6818627337399903,1.7453292519943293,1.8087957702486692,1.8722622885030082,1.9357288067573473,1.9991953250116872,2.062661843266026,2.126128361520365,2.1895948797747042,2.253061398029044,2.316527916283383,2.379994434537722,2.443460952792061,2.506927471046401,2.57039398930074,2.633860507555079,2.697327025809418,2.760793544063758,2.824260062318097,2.887726580572436,2.951193098826776,3.014659617081115,3.078126135335454,3.141592653589793],\n",
       "\"y\":[-1.2246467991473532E-16,-0.06342391965656484,-0.12659245357374938,-0.1892512443604105,-0.2511479871810793,-0.31203344569848734,-0.3716624556603276,-0.4297949120891718,-0.4861967361004687,-0.5406408174555978,-0.5929079290546404,-0.6427876096865395,-0.6900790114821119,-0.7345917086575334,-0.776146464291757,-0.8145759520503357,-0.8497254299495143,-0.8814533634475821,-0.9096319953545184,-0.9341478602651068,-0.9549022414440739,-0.9718115683235418,-0.9848077530122081,-0.9938384644612541,-0.998867339183008,-0.9998741276738751,-0.9968547759519424,-0.9898214418809327,-0.9788024462147786,-0.963842158559942,-0.9450008187146685,-0.9223542941045814,-0.8959937742913358,-0.8660254037844385,-0.8325698546347713,-0.795761840530832,-0.7557495743542583,-0.7126941713788627,-0.6667690005162916,-0.6181589862206051,-0.5670598638627707,-0.5136773915734062,-0.4582265217274104,-0.4009305354066135,-0.34202014332566877,-0.2817325568414295,-0.2203105327865407,-0.15800139597334975,-0.09505604330418231,-0.03172793349806753,0.031727933498067976,0.09505604330418276,0.1580013959733502,0.2203105327865407,0.28173255684142995,0.34202014332566877,0.4009305354066139,0.4582265217274104,0.5136773915734065,0.5670598638627707,0.6181589862206054,0.6667690005162916,0.7126941713788629,0.7557495743542583,0.7957618405308322,0.8325698546347713,0.8660254037844389,0.895993774291336,0.9223542941045815,0.9450008187146685,0.9638421585599422,0.9788024462147787,0.9898214418809328,0.9968547759519424,0.9998741276738751,0.998867339183008,0.9938384644612541,0.9848077530122081,0.9718115683235415,0.9549022414440739,0.9341478602651068,0.9096319953545181,0.8814533634475819,0.8497254299495143,0.8145759520503357,0.7761464642917565,0.7345917086575331,0.6900790114821119,0.6427876096865395,0.5929079290546401,0.5406408174555974,0.4861967361004687,0.4297949120891718,0.37166245566032713,0.31203344569848696,0.2511479871810793,0.18925124436040963,0.12659245357374893,0.0634239196565644,1.2246467991473532E-16]\n",
       "},\n",
       "\"kind\":\"plot\",\n",
       "\"scales\":[],\n",
       "\"layers\":[{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"identity\",\n",
       "\"position\":\"identity\",\n",
       "\"geom\":\"line\",\n",
       "\"data\":{\n",
       "}\n",
       "}],\n",
       "\"theme\":{\n",
       "\"name\":\"light\",\n",
       "\"plot_background\":{\n",
       "\"size\":1.0,\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis\":{\n",
       "\"blank\":true\n",
       "},\n",
       "\"plot_inset\":[0.0,30.0]\n",
       "}\n",
       "}],\n",
       "\"kind\":\"subplots\"\n",
       "};\n",
       "           var plotContainer = document.getElementById(\"eAzFcJ\");\n",
       "           window.letsPlotCall(function() {{\n",
       "               LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
       "           }});\n",
       "       })();\n",
       "   </script>"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "gggrid(listOf(\n",
    "    p + theme(axis = elementBlank()),\n",
    "    p + theme(axis = elementBlank()) + theme(plotInset = listOf(0, 30))\n",
    "))"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Kotlin",
   "language": "kotlin",
   "name": "kotlin"
  },
  "language_info": {
   "codemirror_mode": "text/x-kotlin",
   "file_extension": ".kt",
   "mimetype": "text/x-kotlin",
   "name": "kotlin",
   "nbconvert_exporter": "",
   "pygments_lexer": "kotlin",
   "version": "1.9.10"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
